import { getAction, deleteAction, putAction, postAction, httpAction, downFile } from '@/api/manage'
/**
 * 监所数据
 */
const serviceName = '/sjsk-jail-service'
//监所数据
//查询监所数据
const pageNew = params => postAction(`${serviceName}/supervisoryData/pageNew`,params)
//查询监所数据详情
const DataDetails = params => postAction(`${serviceName}/supervisoryData/details`,params)
//编辑异常数据
const editExceptionData = params => postAction(`/sjsk-jail-service/supervisoryData/editExceptionData`,params)

//监所人员
//监所人员列表
const PointEnter = params => postAction(`${serviceName}/accessPointEnter/pageNew`,params)
//申请介入
const applyInter = params => postAction(`${serviceName}/accessPointEnter/applyInter`,params)
//在所人员数量和审批数量和未申请数量
const inTheQuantity = () => postAction(`/sjsk-jail-service/accessPointEnter/inTheQuantity`)

//监所管理
//数据列表
const ManageList = params => postAction(`${serviceName}/exitManage/pageNew`,params)
//出所衔接-通知专干-社工
const noticePersonOffice = params => postAction(`${serviceName}/exitManage/noticePersonOffice`,params)
//出所衔接-通知人员
const notifyPerson = params => postAction(`${serviceName}/exitManage/notifyPerson`,params)
//出所衔接-通知送戒单位
const notifyUnit = params => postAction(`/sjsk-jail-service/exitManage/notifyUnit`,params)
//出所衔接-人员接收
const personReceive = params => postAction(`${serviceName}/exitManage/personReceive`,params)
//查询-出所衔接-通知专干-社工
const queryNoticePersonOffice = params => postAction(`/sjsk-jail-service/exitManage/queryNoticePersonOffice`,params)
//查询-出所衔接-完成出所
const queryNotifyComplete = params => postAction(`${serviceName}/exitManage/queryNotifyComplete`,params)
//查询-出所衔接-通知人员
const queryNotifyPerson = params => postAction(`${serviceName}/exitManage/queryNotifyPerson`,params)
//查询-出所衔接-人员接收
const queryPersonReceive = params => postAction(`/sjsk-jail-service/exitManage/queryPersonReceive`,params)
//查询-出所衔接-送戒单位上传材料
const queryUploadMaterials = params => postAction(`/sjsk-jail-service/exitManage/queryUploadMaterials`,params)
//查询-出所衔接-送戒单位
const queryUnit = params => postAction(`/sjsk-jail-service/exitManage/queryUnit`,params)
//转介
const referral = params => postAction(`${serviceName}/exitManage/referral`,params)
//出所衔接-送戒单位上传材料
const uploadMaterials = params => postAction(`${serviceName}/exitManage/uploadMaterials`,params)

//社区报道
//列表
const reportDetails = params => postAction(`${serviceName}/reportDetails/pageNew`,params)
//处置
const management = params => postAction(`${serviceName}/reportDetails/management`,params)
//逾期未报道
const overdueAndUnreported = params => postAction(`${serviceName}/reportDetails/overdueAndUnreported`,params)
//人员未报道
const personnelDidNotReport = params => postAction(`${serviceName}/reportDetails/personnelDidNotReport`,params)
//报道登记
const reportRegistration = params => postAction(`${serviceName}/reportDetails/reportRegistration`,params)
//查看处置结果
const viewManagement = params => postAction(`${serviceName}/reportDetails/viewManagement`,params)
export {
  inTheQuantity,
  queryUnit,
  editExceptionData,
  pageNew,
  DataDetails,
  PointEnter,
  applyInter,
  ManageList,
  noticePersonOffice,
  notifyPerson,
  notifyUnit,
  personReceive,
  queryNoticePersonOffice,
  queryNotifyComplete,
  queryNotifyPerson,
  queryPersonReceive,
  queryUploadMaterials,
  referral,
  uploadMaterials,
  reportDetails,
  management,
  overdueAndUnreported,
  personnelDidNotReport,
  reportRegistration,
  viewManagement,
}